package javatest3.ForWhileTest.test2;

import java.util.Scanner;
/*判断一个数是不是素数



 */

public class method1 {
    public static void main(String[] args) {
        boolean flag=true;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i=2;i<n;i++){
            if ((n%i)==0){
                flag=false;
                break;
            }

        }
        if (flag){
            System.out.println(n+"是素数");
        }else {
            System.out.println(n+"不是素数");
        }

    }
}
